// MyToolBar.h: interface for the CToolBarOneUnitManage class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_OneUnitManageTOOLBAR_H__B8C7322A_B46A_4FB9_AB20_2E035AA0EFF1__INCLUDED_)
#define AFX_OneUnitManageTOOLBAR_H__B8C7322A_B46A_4FB9_AB20_2E035AA0EFF1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "..\..\Inc\Center\TmButton.h"
#include "..\..\Inc\Center\WzdToolTipCtrl.h"

#define  ID_ONE_UNIT_VLine		10000000
#define  ID_ONE_UNIT_Add		10000001
#define  ID_ONE_UNIT_Delete		10000002
#define  ID_ONE_UNIT_Copy		10000003
#define  ID_ONE_UNIT_Sort		10000004
 
class CToolBarOneUnitManage : public CToolBar  
{

private:
	HANDLE          m_hParent ;
	CWzdToolTipCtrl m_tip;
	CTmButton*      m_pBtn[10];
	int             m_nBtnCount ;
//	CStatic         m_Static ;
public:
	CToolBarOneUnitManage();
	virtual ~CToolBarOneUnitManage();
	virtual void OnUpdateCmdUI(CFrameWnd* pTarget,BOOL bDisableIfNoHndler);
	void	SetParent(CDialog *pDlg);
public:
	void	InitFace();
	void    ReleaseFace();
	void	SetButtonCheck(int nID,BOOL bCheck);
	BOOL	GetButtonCheck(int nID);
	void	EnableControl(BOOL bEnable);
	void	EnableButton(int nID, BOOL bEnable);
	BOOL	ShowWindow(int nCmdShow);
	void	BtnLDown(UINT uID, UINT nFlag,CPoint pt);
	void	BtnLUp(int nBtnPos,UINT uID, UINT nFlag,CPoint pt);
	static void  CALLBACK BtnMouseEvent(void* pParentWnd,int nBtnPos,UINT uID, UINT nMouseWork, UINT nFlag,CPoint pt);	
 };

#endif // !defined(AFX_MYTOOLBAR_H__B8C7322B_B46A_4FB9_AB20_2E035AA0EFF1__INCLUDED_)
